package com.scm.biz.dao;

import java.util.List;

import com.scm.biz.bean.ProofingOrder;
import com.scm.biz.dto.ProofingOrderNotice;
import com.scm.biz.query.ProofingOrderQuery;
import com.scm.biz.result.ProofingOrderResult;

public interface ProofingOrderDao {
    int deleteByPrimaryKey(Long id);

    int insert(ProofingOrder record);

    int insertSelective(ProofingOrder record);

    ProofingOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProofingOrder record);

    int updateByPrimaryKey(ProofingOrder record);
    
    /**
     * 根据查询参数查询打样订单列表
     * @return
     */
    List<ProofingOrderResult> selectPage(ProofingOrderQuery proofingOrderQuery);
    public ProofingOrderResult selectById(Long id);
    
    /**
     * 根据子订单ID，查询订单数据
     * @param proofingPatternId
     * @return
     */
    ProofingOrderNotice selectByProofingPatternId(Long proofingPatternId);
    
    /**
     * 打样订单总数
     * @param proofingOrderQuery
     * @return
     */
    int selectTotal(ProofingOrderQuery proofingOrderQuery);
}